Using material types

Material types define the property type of a material. By adjusting material property values defined by a material type, you set the appearance of a material. Each material type has a vertex shader and a fragment shader, which set the type of properties you can use in a material.

Kanzi Studio provides template projects that contain a default set of material types and shaders from the Kanzi StudioAsset Library located in <KanziInstallation>/Studio/Asset Library. When you create a new Kanzi Studio project you can select from different project templates based on the material types they provide:

Adding a material type to your project

To add a material type to your project:

  1. In the Library right-click Materials and Textures and select Load Material Type From Disk.
  2. Go to <KanziInstallation>/Studio/Asset Library/MaterialTypes and select the directory that contains material types that best fit the needs of your project:
  3. Select the material type that best fit the needs of your project and click Open.
    Kanzi Studio adds the material type and creates a material using that material type. You can create additional materials from the same material type. See Using materials.

Reusing material types

When you create a material type in your Kanzi Studio project, you can reuse the material type in another Kanzi Studio project.

To reuse material types:

  1. In the Library > Materials and Textures > MaterialTypes right-click the material type you want to use in another project, and select Save Material Type to Disk.
  2. Select the name and location where you want to save the material type and click Save.
    Now you can load that material type to another Kanzi Studio project.

See also

Using materials

Material types and materials